package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface EmployeeService {
    public PageInfo<Employee> listPage(QueryObject queryObject);

    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    Employee cheeckLogin(String username,String password);

    int  deleteInBatches(Long[] ids);

    Employee checkUsername(String username);

    void updateStatus( int status,  Long id);

    public void importXls(MultipartFile file) throws IOException;
}
